package pen_exam.manbang2023_11_08;

import java.util.Scanner;

public class Class01_Math {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l1 = sc.nextLine();
        int n = Integer.parseInt(l1);
        int[] arr = new int[n];
        String[] l2 = sc.nextLine().split(" ");
        int min = Integer.MAX_VALUE;
        int sum = 0;
        for (int i = 0; i < l2.length; i++) {
            arr[i] = Integer.parseInt(l2[i]);
            sum += arr[i];
        }
        System.out.println(sum - n);
    }
}
